package dao

import models.Tables._
import play.api.db.slick.{DatabaseConfigProvider, HasDatabaseConfigProvider}
import slick.jdbc.JdbcProfile

import javax.inject.Inject
import scala.concurrent.{ExecutionContext, Future}

class PublicationsDao @Inject()(protected val dbConfigProvider: DatabaseConfigProvider)
                               (implicit exec: ExecutionContext) extends
  HasDatabaseConfigProvider[JdbcProfile] {

  import profile.api._

  def getAll: Future[Seq[PublicationRow]] = {
    db.run(Publication.result)
  }



}
